package com.pioneer.beans.invoice;

import com.pioneer.gui.invoice.util.Constants;

public class InvoiceDetailModel
implements Constants
{	
    private String itemNo;
    private String itemType;
    private String itemDesc;
    private int itemQty;
    private String itemQtyType;
    private float itemPrice;    
    
    public InvoiceDetailModel()
    {
    	// Set defaults
    	this.itemNo="";
    	this.itemDesc="";
    	this.itemQty=0;
    	this.itemQtyType="P";
    	this.itemPrice=0;
    }
    
    public InvoiceDetailModel(String itemNo, String itemType, String itemDesc, int itemQty, String itemQtyType,
    float itemPrice)
    {
        this.itemNo=itemNo.trim();
        this.itemType=itemType;
        this.itemDesc=itemDesc.trim();
        this.itemQty=itemQty;
        this.itemQtyType=itemQtyType;
        this.itemPrice=itemPrice;
    }
    
    public String getItemNo()
    {
        return this.itemNo;
    }

    public String getItemType()
    {
        return this.itemType;
    }
    
	/*public String getItemTypeDesc()
    {
    	if (this.itemType.equals(STANDARD))
    	{
    		return "Standard";
    	}
    	else if (this.itemType.equals(CUSTOM))
    	{
    		return "Custom";
    	}
    	return "Unknown";
    }*/
    
    public String getItemDesc()
    {
        return this.itemDesc;
    }
    
    public int getItemQty()
    {
        return this.itemQty;
    }
    
    public String getItemQtyType()
    {
        return this.itemQtyType;
    }
    
    /*public String getItemQtyTypeDesc()
    {
    	if (this.itemQtyType.equals(PIECES))
    	{
    		return "Pieces";
    	}
    	else if (this.itemQtyType.equals(CASES))
    	{
    		return "Cases";
    	}
    	return "Unknown";
    }*/
    
    public float getPrice()
    {
        return this.itemPrice;
    }
}